<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@ include file="/pages/jsp/internal/include.jsp" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>File Upload</title>
	<style>
    	#error { color: red; }
    	#message{color:blue;}
  	</style>  
</head>
<body>
	
	<c:forEach items="${model.messages}" var="message">
	   	<div id="message"><fmt:message key="${message}"/></div>
	</c:forEach>
	
	<c:forEach items="${model.errors}" var="error">
	   	<div id="error">
	   		<fmt:message key="${error.key}">
	   			<fmt:param value="${error.param1}"/>
	   		</fmt:message>
	   	</div>
	</c:forEach>

	<FORM NAME="THEFORM" METHOD="POST" ACTION="<c:url value="/file/upload.htm" />"  ENCTYPE="multipart/form-data"> 
		
		Seleziona i files da inviare<br>
		
		<c:forEach  var="i" begin="1" end="20" step="1" varStatus ="status">
			<div> <c:out value="${i}" /> : <INPUT TYPE="FILE" NAME="File_<c:out value="${i}" />" SIZE=15> </div>
			<c:out value="${i}" /> 
		</c:forEach>
		
		<INPUT TYPE="SUBMIT" VALUE="Invia" > 
		<br>
		<INPUT TYPE="RESET" VALUE="Annulla" > 
		
	</FORM>
	 
</body>
</html>